<?php 
session_cache_expire(999999999);
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
$lang = $_SESSION['lang'];
if (empty($lang) || $lang == "EN") {
	include "../value/value_en.php";
} else if($lang == "VN") {
	include "../value/value_vn.php";
}
else {
	include "../value/value_kr.php";
}
include '../operations/connection.php';	


$borrow_assets=mysql_query("SELECT b.*,e.FullName,a.`name` FROM borrow_assets b LEFT JOIN employee e ON b.idemployee=e.IDEmployee, assets a 
							WHERE b.count!=0 AND b.id_assets=a.id AND b.id=".$_REQUEST['id_borrow_assets'].";");
$notBorrow=array();
while ($r = mysql_fetch_array($borrow_assets)){
		$notBorrow=array($r['id'],$r['id_assets'],$r['count'],$r['total'],$r['FullName'],$r['datetime'],$r['note'],$r['name']);
}


?>

<input type="hidden" value="<?php echo $notBorrow[0];?>" name="idnotCheck" id="idnotCheck">
<input type="hidden" value="<?php echo $notBorrow[1];?>" name="idisCheck1" id="idisCheck1">
			   <table style=" padding-left:10px;">

							<tr >
								<td  class="tdfirst" style="width: 180px"><?php echo $l_nameassets;?></td>
								<td>
									<input type="text" name="namenotCheck" id="namenotCheck" value="<?php echo $notBorrow[7];?>"  class="in_testfield" style="width:200px;float:left;height:24px;" disabled="disabled" />
								</td>
								<td ></td>
								<td></td>
							</tr >		
							<tr >
								<td  class="tdfirst" style="width: 180px"><?php echo $l_employee;?></td>
								<td>
									<input type="text" name="employeenotCheck" id="employeenotCheck"  value="<?php echo $notBorrow[4];?>" class="in_testfield" style="width:200px;float:left;height:24px;" disabled="disabled" />
								</td>
								<td ></td>
								<td></td>
							</tr >	
							<tr >
								<td  class="tdfirst" style="width: 180px"><?php echo $l_time;?></td>
								<td>
									<input type="text" name="datetimenotCheck" id="datetimenotCheck" value="<?php echo $notBorrow[5];?>"  class="in_testfield" style="width:200px;float:left;height:24px;" disabled="disabled" />
								</td>
								<td ></td>
								<td></td>
							</tr >		
							<tr >
								<td  class="tdfirst" style="width: 180px"><?php echo $l_countassets2.'/'.$l_totalassets2;?></td>
								<td>
									<select name="countnotCheck" id="countnotCheck" style="height: 24px">
										<?php for($i=1;$i<$notBorrow[2];$i++){?>
										<option value="<?php echo $i;?>"><?php echo $i;?></option>
										<?php }?>
										<option value="<?php echo $notBorrow[2];?>" selected="selected"><?php echo $notBorrow[2];?></option>
									</select>/
									<select name="totalnotCheck" id="totalnotCheck" style="height: 24px" disabled="disabled">		
										<option value="4" selected="selected"><?php echo $notBorrow[3];?></option>
									</select>
								</td>
								<td></td>
								<td></td>
							</tr>
							<!--  <tr >
								<td  class="tdfirst" style="width: 180px"><?=$l_employee?></td>
								<td style="width: 180px">
									<?php echo $bien?>
								</td>
								<td></td>
								<td></td>
							</tr >-->
							<tr >
								<td  class="tdfirst" style="height:24px;"><?=$l_note?></td>
								<td><input type="text" name="notenotCheck" id="notenotCheck" value=""  class="in_testfield" style="width:365px;float:left;height:24px;" /></td>
								<td><input style="margin:2px 5px 0 0; font-size: 12px;" type="button" value="<?=$l_xacnhan?>" name="xacnhanis"   class="btn_choose" onclick="notCheck();" /></td>
								<td></td>
							</tr>
							
				</table>
<?php mysql_close($connection);?>